home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
pc
/
Code
/
Chapter Code.exe
/
Chapter09
/
twotimesensors.s3d
< prev
Wrap
Text File
|
2000-08-29
|
982b
|
60 lines
DEF Box01 Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.898 0.6039 0.8431
}
}
geometry Box {
}
}
]
translation 0 0 0
}
#Horizontal animation
DEF timer TimeSensor {
startTime 0
cycleInterval 2
loop TRUE
}
DEF Box01-POS-INTERP PositionInterpolator {
key [ 0, 1 ]
keyValue [
#horizontal
0 0 0,
5 0 0 ]
}
#Vertical Animation
DEF timer2 TimeSensor {
startTime -1
cycleInterval 8
loop TRUE
}
DEF Box01-POS-INTERP2 PositionInterpolator {
key [ 0, 1 ]
keyValue [
#vertical
0 0 0,
0 4 0 ]
}
ROUTE timer.fraction_changed TO Box01-POS-INTERP.set_fraction
ROUTE Box01-POS-INTERP.value_changed TO Box01.set_translation
ROUTE timer2.fraction_changed TO Box01-POS-INTERP2.set_fraction
ROUTE Box01-POS-INTERP2.value_changed TO Box01.set_translation